import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import 'bootstrap/dist/css/bootstrap.css'
import 'assets/fonts/iconfont.css'
import axios from 'axios'

axios.defaults.baseURL = 'https://www.escook.cn/'
Vue.prototype.$axios = axios
// 自定义指令
Vue.directive('focus', {
  inserted(el){
    el.focus()
  }
})

// 自定义插件
import Prompt from 'components/prompt'
Vue.use(Prompt)

new Vue({
  render: h => h(App),
}).$mount('#app')
